import * as promotionApi from '../../api/promotion_manage'

const promotionManage = {
  namespaced: true,
  state: {},
  actions: {
    async fetchPromotionList({commit}, searchObj) {
      let respData = await promotionApi.searchPromotion(searchObj)
      respData = respData.data
      return new Promise((resolve) => {
        resolve(respData)
      })
    }
  }
}

export default promotionManage
